package zhoug.demo.player;

import android.content.Context;
import android.view.Gravity;
import android.view.WindowManager;


import androidx.annotation.NonNull;
import zhoug.common.anim.ZAnimations;
import zhoug.common.utils.AppUtils;
import zhoug.zui.dialog.list.ZUIListDialog;

/**
 * @Author: zhoug
 * @Date: 2024-12-06
 * @Description:
 */
public class PlayDataListDialog  extends ZUIListDialog<PlayData> {
    public PlayDataListDialog(@NonNull Context context) {
        super(context);
        setFullWidth(true);
        setAttributes(WindowManager.LayoutParams.MATCH_PARENT,WindowManager.LayoutParams.WRAP_CONTENT, Gravity.BOTTOM);
        setHeight(AppUtils.getScreenSize().y/2);
        setWindowAnimations(ZAnimations.ANIM_DOWN);
    }

    @Override
    public String getText(PlayData itemData) {
        return itemData.getName();
    }

}
